package com.yst.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.yst.common.annotation.Excel;
import com.yst.common.core.domain.BaseEntity;

/**
 * 产品信息对象 bas_item
 * 
 * @author hoj
 * @date 2024-05-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("bas_item")
public class BasItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "item_id",type = IdType.AUTO)
    private Long itemId;

    /** 主图 */
    @Excel(name = "产品图片",cellType= Excel.ColumnType.IMAGE,height = 30)
    @TableField("img_url")
    private String imgUrl;

    /** 型号 */
    @Excel(name = "型号")
    @TableField("item_model")
    private String itemModel;

    /** 名称 */
    @Excel(name = "名称")
    @TableField("item_name")
    private String itemName;

    /** 分类 */
    @Excel(name = "分类")
    @TableField("item_type")
    private String itemType;


    /** 规格 */
    @Excel(name = "尺寸")
    @TableField("specification")
    private String specification;


    /** 材质 */
    @Excel(name = "材质")
    @TableField("texture")
    private String texture;

    /** 颜色 */
    @Excel(name = "颜色")
    @TableField("color")
    private String color;

    /** 单位 */
    @Excel(name = "单位")
    @TableField("unit")
    private String unit;

    /** 零售价 */
    @Excel(name = "出厂价")
    @TableField("purchase_price")
    private BigDecimal purchasePrice;

    /** 零售价 */
    @Excel(name = "零售价")
    @TableField("retail_price")
    private BigDecimal retailPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 区域 */
    @Excel(name = "区域")
    @TableField("area")
    private String area;

    /** 供应商 */
    @Excel(name = "供应商")
    @TableField("supplier")
    private String supplier;


    /** 生产日期 */
    @TableField("production_date")
    private Date productionDate;

    /** 有效期 */
    @TableField("expiry_date")
    private Date expiryDate;

    /** 删除标识 */
    @TableLogic(value = "0",delval = "1")
    @TableField("del_flag")
    private Long delFlag;

    @TableField(exist = false)
    private BasItemType basItemType;

}
